<?xml version="1.0"?>
<!--
  ~ Copyright 2004-2012 ICEsoft Technologies Canada Corp.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the
  ~ License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an "AS
  ~ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  ~ express or implied. See the License for the specific language
  ~ governing permissions and limitations under the License.
  -->

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:ace="http://www.icefaces.org/icefaces/components"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:icecore="http://www.icefaces.org/icefaces/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    template="/resources/templates/content-template.xhtml">

    <ui:param name="title" value="#{msgs[accordionPanelEffectBean.title]}"/>
    <ui:param name="description" value="#{msgs[accordionPanelEffectBean.description]}"/>
    <ui:param name="resourceValue" value="#{accordionPanelEffectBean.exampleResource}"/>
    
    <ui:param name="wikiResources" value="#{accordionPanelResources.wikiResources}"/>
    <ui:param name="tldResources" value="#{accordionPanelResources.tldResources}"/>

    <ui:define name="example">
        <h:form id="form">
            <ace:accordion id="accordionPanel" autoHeight="false" event="mouseover" effect="bounceslide">
                <ace:accordionPane id="pane1" title="What is Lorem Ipusum?">  
                    <h:outputText id="desc1" value="Lorem Ipsum is a dummy text in multiple industries. It has been the industry's standard dummy text since the 1500s, when an unknown printer took a galley of type and scrambled it to make a book. Lorem Ipsum has survived not only five centuries, but also, remained essentially unchanged. It become popular in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software which include different part of Lorem Ipsum." />  
                </ace:accordionPane>
                <ace:accordionPane id="pane2" title="Where does it come from?">  
                    <h:outputText id="desc2" value="Despite to popular belief, Lorem Ipsum is not a random text. It has roots comming from classical Latin literature written in 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, discovered the undoubtable source of this text. Lorem Ipsum comes from two sections 1.10.32 and 1.10.33 of 'de Finibus Bonorum et Malorum' (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book covers the theory of ethics, very popular during the Renaissance." />  
                </ace:accordionPane>  
                <ace:accordionPane id="pane3" title="Why Lorem Ipusum is used?">  
                    <h:outputText id="desc3" value="It is an established fact that a reader will be distracted by the readable content of a page when looking at its layout. The idea of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Some content here, Some content here', making it look like readable English" />  
                </ace:accordionPane>
                <ace:accordionPane id="pane4" title="Translation by H. Rackham (1914)">
                    <h:outputText id="desc4" value="But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"/>
                </ace:accordionPane>
            </ace:accordion>
        </h:form>
    </ui:define>
</ui:composition>